package com.fc.advbox.service.impl;

import com.fc.advbox.dao.PermDao;
import com.fc.advbox.entity.PermissionEntity;
import com.fc.advbox.service.IPermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

@Service("permService")
public class PermServiceImpl implements IPermService,Serializable {

    @Autowired
    private PermDao permDao;

    @Override
    public PermissionEntity queryObject(Long permId) {
        return permDao.queryObject(permId);
    }

    @Override
    public List<PermissionEntity> queryList(Map<String, Object> map) {
        return permDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return permDao.queryTotal(map);
    }

    @Override
    public void save(PermissionEntity perm) {
        permDao.save(perm);
    }

    @Override
    public void update(PermissionEntity perm) {
        permDao.update(perm);
    }

    @Override
    public void deleteBatch(Long[] permIds) {
        permDao.deleteBatch(permIds);
    }
}
